package com.ziyun.erp.modules.capital.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.ziyun.erp.modules.capital.entity.MerchantOrderAccountEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.util.List;

/**
 * 
 * 
 * @author zh
 * @email 296588519@qq.com
 * @date 2018-08-03 10:21:15
 */
public interface MerchantOrderAccountDao extends BaseMapper<MerchantOrderAccountEntity> {

    /**
     * 查询 生成商户未生产金额的订单
     * @param page
     * @return
     */
    List<MerchantOrderAccountEntity> selectFinishSellerOrderNotSyn(Page<MerchantOrderAccountEntity> page);

    int updateByCashId(Integer applyCashId);

    void synSellerOrder();

    List<MerchantOrderAccountEntity> selectListByCashId(Integer cashId);
}
